<!DOCTYPE html>
<html>
<head>
<title>Register</title>
<style>
body {
    font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.register-container {
    background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 300px;
}
.register-container h2 {
    text-align: center;
margin-bottom: 20px;
}
.register-container input {
    width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 3px;
}
.register-container button {
    width: 100%;
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
.register-container button:hover {
    background-color: #45a049;
}
.login-link {
    text-align: center;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="register-container">
<h2>注册</h2>
<form method="POST" action="/register">
<input type="text" name="username" placeholder="Username" required>
<input type="password" name="password" placeholder="Password" required>
<button type="submit">注册</button>
</form>
<div class="login-link">
已有账号? <a href="/">登录</a>
</div>
</div>
</body>
</html>